package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 资讯对象 news
 *
 * @author gzhuangwei
 * @date 2022-05-17
 */
@ApiModel(value = "Expert", description = "新闻资讯实体")
public class News extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 资讯ID */
    @ApiModelProperty("资讯ID")
    @Excel(name = "资讯ID")
    private Long id;

    /** 资讯类型代码 */
    @ApiModelProperty("资讯类型代码")
    @Excel(name = "资讯类型代码")
    private Integer type;

    /** 赛事类型 */
    @ApiModelProperty("赛事类型")
    @Excel(name = "赛事类型")
    private String kind;

    /** 图片 */
    @ApiModelProperty("新闻图片")
    @Excel(name = "图片")
    private String photo;

    /** 标题 */
    @ApiModelProperty("标题")
    @Excel(name = "标题")
    private String title;

    /** 内容 */
    @ApiModelProperty("内容")
    @Excel(name = "内容")
    private String intro;

    /** 创建时间 */
    @ApiModelProperty("发布时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    /** 简介 */
    @ApiModelProperty("简介")
    @Excel(name = "简介")
    private String introduce;

    /** 所属赛事编号 */
    @ApiModelProperty("所属赛事编号")
    @Excel(name = "所属赛事编号")
    private Long competition;

    /** 所属赛事 */
    @ApiModelProperty("所属赛事")
    @Excel(name = "所属赛事")
    private String competitiontitle;

    /** 作者 */
    @ApiModelProperty("作者")
    @Excel(name = "作者")
    private String writer;

    /** 附件 */
    @ApiModelProperty("附件")
    @Excel(name = "附件")
    private String file;

    /** 附件名称 */
    @ApiModelProperty("附件名称")
    @Excel(name = "附件名称")
    private String filetitle;

    /** 联系人 */
    @ApiModelProperty("联系人")
    @Excel(name = "联系人")
    private String contact;

    /** 联系电话 */
    @ApiModelProperty("联系电话")
    @Excel(name = "联系电话")
    private String phone;

    /** 状态 */
    @ApiModelProperty("状态")
    @Excel(name = "状态")
    private String state;

    /** 状态 */
    @ApiModelProperty("排序")
    @Excel(name = "排序")
    private Long showorder;

    /** 创建帐号ID */
    @Excel(name = "创建帐号ID")
    private Long createid;

    /** 修改者ID */
    @Excel(name = "修改帐号ID")
    private Long updateid;

    /** 创建者帐号 */
    @Excel(name = "创建者帐号")
    private String createby;

    /** 修改者帐号 */
    @Excel(name = "修改者帐号")
    private String updateby;

    /** 审批者ID */
    @Excel(name = "审批者ID")
    private Long approveid;

    /** 审批者帐号 */
    @Excel(name = "审批者帐号")
    private String approveby;

    /** 创建时间 */
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createtime;

    /** 修改时间 */
    @ApiModelProperty("修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatetime;

    /** 审批时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审批时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date approvetime;

    public Long getShoworder() {
        return showorder;
    }

    public void setShoworder(Long showorder) {
        this.showorder = showorder;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public String getKind() {
        return kind;
    }

    public void setKind(String kind) {
        this.kind = kind;
    }
    public void setType(Integer type)
    {
        this.type = type;
    }

    public Integer getType()
    {
        return type;
    }
    public void setPhoto(String photo)
    {
        this.photo = photo;
    }

    public String getPhoto()
    {
        return photo;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setIntro(String intro)
    {
        this.intro = intro;
    }

    public String getIntro()
    {
        return intro;
    }
    public void setTime(Date time)
    {
        this.time = time;
    }

    public Date getTime()
    {
        return time;
    }
    public void setIntroduce(String introduce)
    {
        this.introduce = introduce;
    }

    public String getIntroduce()
    {
        return introduce;
    }
    public void setCompetition(Long competition)
    {
        this.competition = competition;
    }

    public Long getCompetition()
    {
        return competition;
    }
    public void setCompetitiontitle(String competitiontitle)
    {
        this.competitiontitle = competitiontitle;
    }

    public String getCompetitiontitle()
    {
        return competitiontitle;
    }
    public void setWriter(String writer)
    {
        this.writer = writer;
    }

    public String getWriter()
    {
        return writer;
    }
    public void setFile(String file)
    {
        this.file = file;
    }

    public String getFile()
    {
        return file;
    }
    public void setFiletitle(String filetitle)
    {
        this.filetitle = filetitle;
    }

    public String getFiletitle()
    {
        return filetitle;
    }
    public void setContact(String contact)
    {
        this.contact = contact;
    }

    public String getContact()
    {
        return contact;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }
    public void setState(String state)
    {
        this.state = state;
    }

    public String getState()
    {
        return state;
    }
    public void setCreateid(Long createid)
    {
        this.createid = createid;
    }

    public Long getCreateid()
    {
        return createid;
    }
    public void setUpdateid(Long updateid)
    {
        this.updateid = updateid;
    }

    public Long getUpdateid()
    {
        return updateid;
    }
    public void setApproveid(Long approveid)
    {
        this.approveid = approveid;
    }

    public Long getApproveid()
    {
        return approveid;
    }
    public void setCreateby(String createby)
    {
        this.createby = createby;
    }

    public String getCreateby()
    {
        return createby;
    }
    public void setUpdateby(String updateby)
    {
        this.updateby = updateby;
    }

    public String getUpdateby()
    {
        return updateby;
    }
    public void setApproveby(String approveby)
    {
        this.approveby = approveby;
    }

    public String getApproveby()
    {
        return approveby;
    }
    public void setCreatetime(Date createtime)
    {
        this.createtime = createtime;
    }

    public Date getCreatetime()
    {
        return createtime;
    }
    public void setUpdatetime(Date updatetime)
    {
        this.updatetime = updatetime;
    }

    public Date getUpdatetime()
    {
        return updatetime;
    }
    public void setApprovetime(Date approvetime)
    {
        this.approvetime = approvetime;
    }

    public Date getApprovetime()
    {
        return approvetime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("type", getType())
                .append("photo", getPhoto())
                .append("title", getTitle())
                .append("intro", getIntro())
                .append("time", getTime())
                .append("introduce", getIntroduce())
                .append("competition", getCompetition())
                .append("competitiontitle", getCompetitiontitle())
                .append("writer", getWriter())
                .append("file", getFile())
                .append("filetitle", getFiletitle())
                .append("contact", getContact())
                .append("phone", getPhone())
                .append("remark", getRemark())
                .append("state", getState())
                .append("showorder", getShoworder())
                .append("createid", getCreateid())
                .append("createby", getCreateby())
                .append("createtime", getCreatetime())
                .append("updateid", getUpdateid())
                .append("updateby", getUpdateby())
                .append("updatetime", getUpdatetime())
                .append("approveid", getApproveid())
                .append("approveby", getApproveby())
                .append("approvetime", getApprovetime())
                .toString();
    }
}
